package org.wq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by admin on 2016/11/28.
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages = "org.wq")
@Controller
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }

    @RequestMapping({"/","index.html"})
    public ModelAndView index() {
        return new ModelAndView("index");
    }
}
